package algorithmTopics.tree;

public class test3 {

    public static void main(String[] args) {
        TreeNode root = new TreeNode(1);
        TreeNode left1 = new TreeNode(2);
        TreeNode left2 = new TreeNode(4);
        TreeNode right1 = new TreeNode(3);
        root.left = left1;
        root.right = right1;
        root.left.right = left2;
        System.out.println(root.levelOrder(root).toString());

    }
}
